
import axios from '@/libs/request/axios'

// 获取评级指标树节点
export const getGradeModelElementTreeNode = (modelCode) => {
    return axios.request({
        url: '/channel/grade/gradeModelElementList/getGradeModelElementTreeNode',
        params: { modelCode },
        method: 'post'
    })
}

// 根据ModelCode和ElementNo查询评级模型评分项信息
export const getVoByModelCodeAndElementNo = (modelCode, elementNo) => {
    return axios.request({
        url: '/channel/grade/gradeModelElementList/getVoByModelCodeAndElementNo',
        data: { modelCode, elementNo },
        method: 'post'
    })
}

// 配置指标修改  GradeModelElementList对象集合json数据+recordCode（区分新增，修改，删除状态）？待确认
export const update = (data) => {
    return axios.request({
        url: '/channel/grade/gradeModelElementList/update',
        data,
        method: 'post'
    })
}
